package com.wr.function09;

import java.util.function.Consumer;

// 消费型接口
public class Demo3 {
    public static void main(String[] args) {
        Consumer<String> consumer = (str) -> {
            System.out.println(str);
        };

        consumer.accept("123");
    }
}
